﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="S_RePrint.aspx.cs" Inherits="JTicket.UI.S_RePrint" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <!--分页Script-->
    <script type="text/jscript">
        $(document).ready(function () { 
            setInterval("IsSelect();", 30000);
        }); 
        //查询
        function IsSelect() {
            window.location.href = "S_RePrint.aspx?bdate="
            + document.getElementById('txtBegin').value + "&edate="
            + document.getElementById('txtEnd').value;
        }
        //提交审核
        function IsExt(a,b) {
            if (confirm("是否提交审核！")) {
                $.ajax({
                    type: "get",
                    url: "RegRprint.axd?Flag=" + a
                    + "&StitleCode=" + b + "&Time=" + new Date(),
                    success: function (msg) {
                        alert(msg);
                        window.location.reload(); //重新加载该页面
                    },
                    error: function () { isAlertError(); }
                });
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
        <tr>
            <td height="25" class="category t2" style="width: 716px">
                重打票申请
            </td>
            <td height="25" class="category">
                [提示：双击行显示详细]
            </td>
        </tr>
    </table>
    <table width="100%" border="0" bordercolordark="#3890B5" bordercolorlight="#6591BE"
        align="center" cellpadding="1" cellspacing="1">
        <tr>
            <td align="center" bgcolor="#3890B5" style="height: 12px">
                <span class="B">当日历史售票记录</span>
            </td>
            <td align="center" bgcolor="#3890B5" style="height: 12px; width: 150px;">
                <span class="B"></span>
            </td>
        </tr>
    </table>
    <table align="center" border="0" bordercolordark="#3890b5" bordercolorlight="#6591be"
        cellpadding="1" cellspacing="1" width="100%">
        <tr>
            <td align="center" bgcolor="#f6f6f6" colspan="2" height="25" style="text-align: left">
                销售日期：<input id="txtBegin" class="input" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />至<input
                    id="txtEnd" class="input" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                &nbsp;
                <input type="button" id="BtnSelete" value="查  询" onclick="IsSelect();" onmousemove="showBtnOver(this)"
                    onmouseout="showBtnOut(this)" class="submitMiniGreen" />
            
            </td>
        </tr>
        <tr>
            <td align="center" bgcolor="#f6f6f6" colspan="2">
            </td>
        </tr>
    </table>
    <table cellpadding="1" cellspacing="1" id="TbInfo" class="TbInfo">
        <tr>
            
            <td class="B" style="width: 4%">
                序号
            </td>
            <td class="B" style="width: 20%">
                订单号
            </td>
            <td class="B" style="width: 20%">
                场馆编号
            </td>
            <td class="B">
                演出名称
            </td>
            <td class="B" style="width: 10%">
                张数
            </td>
            <td class="B" style="width:10%">
                操作员
            </td>
            <td class="B" style="width: 10%">
                销售日期
            </td>
            <td class="B" style="width: 10%">
                审核状态
            </td>
        </tr>
        <%if(_ds.Tables[0].Rows.Count>0){%>
        <%for (int i = 0; i <= _ds.Tables[0].Rows.Count - 1; i++)
          {%>
        <tr  ondblclick="window.showModalDialog('S_ReprintList.aspx?ordercode=<%=_ds.Tables[0].Rows[i]["flag"].ToString()%>&thcode=<%=_ds.Tables[0].Rows[i]["ThCode"].ToString()%>&Titlecode=<%=_ds.Tables[0].Rows[i]["stitlecode"].ToString()%>','','location:No;status:No;help:No;dialogWidth:900px;dialogHeight:500px;scroll:yes');" style=" cursor:hand">
 
            <td class="td1">
                <%=Convert.ToString(i + 1)%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["flag"].ToString()%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["ThCode"].ToString()%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["stitle"].ToString()%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["张数"].ToString()%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["OperCode"].ToString()%>
            </td>
            <td class="td1">
                <%=_ds.Tables[0].Rows[i]["SaleDate"].ToString()%>
            </td>
            <td class="td2">
                <%=stat(_ds.Tables[0].Rows[i]["状态"].ToString(), _ds.Tables[0].Rows[i]["flag"].ToString(), _ds.Tables[0].Rows[i]["stitlecode"].ToString())%>
            </td>
        </tr>
        <%}%>
        <%}%>
    </table>
    <div id="pager" class="pagination" style="background: #FFFFFF">
    </div>
</asp:Content>
